#ifndef __AX_QMC5883l_i2c_D14_15_H
#define __AX_QMC5883l_i2c_D14_15_H
#include "stm32f4xx.h"

void PX_IIC2_Init(void);
 
 uint8_t PX_IIC2_Write(uint8_t dev_addr, uint8_t reg_addr, uint8_t len,  uint8_t *data);
 uint8_t PX_IIC2_Write_byte(uint8_t dev_addr, uint8_t reg_addr,  uint8_t data);
  uint8_t PX_IIC2_Read_byte(uint8_t dev_addr, uint8_t reg_addr,  uint8_t *data);
 uint8_t PX_IIC2_Read(uint8_t dev_addr, uint8_t reg_addr, uint8_t len, uint8_t *data);
 uint8_t test(uint16_t dev_addr );
#endif 
